{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "9b0b589c-2fdc-4aa2-8b57-c801648bfdc3",
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "import json\n",
    "import time\n",
    "import logging\n",
    "import random\n",
    "\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "from datetime import datetime\n",
    "import schedule\n",
    "\n",
    "import multiprocessing\n",
    "from threading import Thread"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "063aaae9-6d63-4539-8d26-3a687ad234d9",
   "metadata": {},
   "outputs": [],
   "source": [
    "logger = logging.getLogger(__name__)\n",
    "logger.setLevel(logging.DEBUG)\n",
    "handler = logging.StreamHandler()\n",
    "handler.setLevel(logging.DEBUG)\n",
    "formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(message)s')\n",
    "handler.setFormatter(formatter)\n",
    "logger.addHandler(handler)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "ba749049-63a4-4dbc-a0ad-8d81bc95de53",
   "metadata": {},
   "outputs": [],
   "source": [
    "def ConvertToSimTime_us(start_time, time_ratio, day, running_time):\n",
    "    return (time.time() - start_time - (day - 1) * running_time) * time_ratio"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "b5842d42-b759-4123-b940-1738e7d48d32",
   "metadata": {},
   "outputs": [],
   "source": [
    "class BotsClass:\n",
    "    def __init__(self, username, password):\n",
    "        self.username = username\n",
    "        self.password = password\n",
    "\n",
    "    def login(self):\n",
    "        pass\n",
    "\n",
    "    def init(self):\n",
    "        pass\n",
    "\n",
    "    def bod(self):\n",
    "        pass\n",
    "\n",
    "    def work(self):\n",
    "        pass\n",
    "\n",
    "    def eod(self):\n",
    "        pass\n",
    "\n",
    "    def final(self):\n",
    "        pass\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "73903cb4-a3d8-414f-892d-c4f456b428b7",
   "metadata": {},
   "outputs": [],
   "source": [
    "class DataManager:\n",
    "    def __init__(self, bot, stock_code):\n",
    "        self.bot = bot\n",
    "        self.stock = stock_code\n",
    "        self.tick_data = np.zeros((14400, 44))\n",
    "\n",
    "    def get_tick_data(self, LOB):\n",
    "        tmp_ls = [LOB[\"lob\"][\"localtime\"], LOB[\"lob\"][\"last_price\"], LOB[\"lob\"][\"trade_value\"],\n",
    "                  LOB[\"lob\"][\"trade_volume\"]]\n",
    "        tmp_ls = (tmp_ls + LOB[\"lob\"][\"bidprice\"] + LOB[\"lob\"][\"askprice\"] +\n",
    "                  LOB[\"lob\"][\"bidvolume\"] + LOB[\"lob\"][\"askvolume\"])\n",
    "        return tmp_ls\n",
    "\n",
    "    def UpdateTickData(self, stock_code):\n",
    "        \"\"\"\n",
    "        :param stock_code: \"UBIQ023\"\n",
    "        \"\"\"\n",
    "        LOB = self.bot.api.sendGetLimitOrderBook(self.token_ub, self.stock_code)\n",
    "        localtime = LOB[\"lob\"][\"localtime\"]\n",
    "        self.tick_data[localtime, :] = np.array(self.get_tick_data(LOB))\n",
    "        while True:\n",
    "            LOB = self.bot.api.sendGetLimitOrderBook(self.token_ub, stock_code)\n",
    "            if LOB[\"status\"] == \"Success\" and localtime != LOB[\"lob\"][\"localtime\"]:\n",
    "                localtime = LOB[\"lob\"][\"localtime\"]\n",
    "                self.tick_data[stock_code].tick_data[localtime, :] = np.array(self.get_tick_data(LOB))\n",
    "            if localtime >= 14399:\n",
    "                break\n",
    "            time.sleep(0.05)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "242d282c-f4db-4e27-bc40-821aa1574c45",
   "metadata": {},
   "outputs": [],
   "source": [
    "class InterfaceClass:\n",
    "    def __init__(self, domain_name):\n",
    "        \"\"\"\n",
    "        :param domain_name: \"https://trading.competition.ubiquant.com\"\n",
    "        \"\"\"\n",
    "        self.domain_name = domain_name\n",
    "        self.session = requests.Session()\n",
    "\n",
    "    def sendLogin(self, username, password):\n",
    "        \"\"\"\n",
    "        Login:登录\n",
    "        使用response[ \"token_ub\"]获取你的令牌，需要使用令牌来调用下面的各个函数\n",
    "        \"\"\"\n",
    "        url = self.domain_name + \"/api/Login\"\n",
    "        data = {\n",
    "            \"user\": username,\n",
    "            \"password\": password\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendOrder(self, token_ub, instrument, localtime, direction, price, volume):\n",
    "        \"\"\"\n",
    "        Order: 下单\n",
    "        原则上你需要保证你的下单合法（具体参见交易细则与交易限制)。\n",
    "        使用response[\"index\"]获取这次下单的索引，你需要使用索引来进行撤单。\n",
    "        \"\"\"\n",
    "        logger.debug(\n",
    "            \"Order: Instrument: {}, Direction:{}, Price: {}, Volume:{}\".format(instrument, direction, price, volume))\n",
    "        url = self.domain_name + \"/api/TradeAPI/Order\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "            \"user_info\": \"NULL\",\n",
    "            \"instrument\": instrument,\n",
    "            \"localtime\": localtime,\n",
    "            \"direction\": direction,\n",
    "            \"price\": price,\n",
    "            \"volume\": volume,\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendCancel(self, token_ub, instrument, localtime, index):\n",
    "        \"\"\"\n",
    "        Cancel:撤单\n",
    "        \"\"\"\n",
    "        logger.debug(\"Cancel: Instrument: {}, index:{}\".format(instrument, index))\n",
    "        url = self.domain_name + \"/api/TradeAPI/Cancel\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "            \"user_info\": \"NULL\",\n",
    "            \"instrument\": instrument,\n",
    "            \"localtime\": 0,\n",
    "            \"index\": index\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendGetLimitOrderBook(self, token_ub, instrument):\n",
    "        \"\"\"\n",
    "        GetLimitOrderBook:获取限价订单簿\n",
    "        使用response[\"lob\"][\"limit_up_price\"], response][\"lob\"][\"limit_down_price\"]获取涨跌停价\n",
    "        使用response[\"lob\"][\"bidprice\"], response[\"lob\"][\"askprice\"], response[\"lob\"][\"bidvolume\"],\n",
    "           response[\"lob\"][\"askvolume \"]获取买卖价量的列表\n",
    "        使用response[\"lob\"][\"last_price\"], response[\"lob\"][\"trade_volume\"],\n",
    "           response[\"lob\"][\"trade_value\"]获取最后成交价，成交量和成交额\n",
    "        \"\"\"\n",
    "        logger.debug(\"GetLimitOrderBOok: Instrument: {}\".format(instrument))\n",
    "        url = self.domain_name + \"/api/TradeAPI/GetLimitOrderBook\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "            \"instrument\": instrument\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendGetUserInfo(self, token_ub):\n",
    "        \"\"\"\n",
    "        GetUserInfo: 获取用户信息\n",
    "        使用response[\"pnl\"], response[\"sharpe\"], response[\"orders\"], response[\"error_orders\"],\n",
    "           response[\"order_value\"], response[\"trade_value\"], response[\"commision\"],\n",
    "           response[\"totaposition\"], response[\"remain_funds\"]\n",
    "           获取PNL，Sharpe，总下单数，错单数，总下单金额，总成交金额，手续费，市值，可用资金\n",
    "        使用response[\"rows\"]获取股票的信息列表\n",
    "        在response[\"rows\"][i]中，\n",
    "        使用instrument_name, share_holding, position, pnl, orders, error_orders, order_value, trade_value, commision\n",
    "        获得股票名称，持仓，市值，PNL，下单数，错单数，总下单金额，交金额，手续费\n",
    "        \"\"\"\n",
    "        logger.debug(\"GetUserInfo: \")\n",
    "        url = self.domain_name + \"/api/TradeAPI/GetUserInfo\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendGetGameInfo(self, token_ub):\n",
    "        \"\"\"\n",
    "        GetGameInfo:获取比赛信息\n",
    "        使用response[\"next_game_start_time\"], response[\"next_game_running_days\"],\n",
    "           response[\"next_game_running_time\"], response[\"next_game_time_ratio\"}获取比赛的相关信息\n",
    "        \"\"\"\n",
    "        logger.debug(\"GetGameInfo: \")\n",
    "        url = self.domain_name + \"/api/TradeAPI/GetGameInfo\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendGetInstrumentInfo(self, token_ub):\n",
    "        \"\"\"\n",
    "        GetInstrumentInfo: 获取股票信息\n",
    "        使用response[\"instruments\"]获取股票的列表\n",
    "        对于每一只股票, response[\"instruments\"][i][\"instrument_name\"]获取其对应的股票名称\n",
    "        使用response[\"instrument_number\"]获取股票的数量\n",
    "        \"\"\"\n",
    "        logger.debug(\"GetInstrumentInfo: \")\n",
    "        url = self.domain_name + \"/api/TradeAPI/GetInstrumentInfo\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendGetTrade(self, token_ub, instrument):\n",
    "        \"\"\"\n",
    "        GetTrade: 获取成交信息\n",
    "        使用response[\"trade_list\"]获取成交列表\n",
    "        使用response[\"trade_list\"][i]中trade_time, trade_index, order_index, trade_price, trade_volume, remain_volume\n",
    "        获取成交时间，成交索引，下单索引，成交价，成交量，剩余量\n",
    "        \"\"\"\n",
    "        logger.debug(\"GetTrade: Instrment: {}\".format(instrument))\n",
    "        url = self.domain_name + \"/api/TradeAPI/GetTrade\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "            \"instrument_name\": instrument\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n",
    "\n",
    "    def sendGetActiveOrder(self, token_ub):\n",
    "        \"\"\"\n",
    "        GetActiveOrder:获取当前外挂单\n",
    "        使用response[\"instruments\"]获取当前外挂的股票列表\n",
    "        使用response[\"instruments\"][i][\"instrument\"]获取股票名称，\n",
    "           response[\"instruments\"][i][\"active_orders\"]获取当前股票的外挂单列表。\n",
    "        在response[\"instruments\"][i][\"active_orders\"][j]\n",
    "        使用order_index,order_price, volume, direction 获取下单索引，下单价，下单量，下单方向\n",
    "        \"\"\"\n",
    "        logger.debug(\"GetActiveOrder: \")\n",
    "        url = self.domain_name + \"/api/TradeAPI/GetActiveOrder\"\n",
    "        data = {\n",
    "            \"token_ub\": token_ub,\n",
    "        }\n",
    "        response = self.session.post(url, data=json.dumps(data)).json()\n",
    "        return response\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "d516eae7-47cc-41f3-a620-94b467696b82",
   "metadata": {},
   "outputs": [],
   "source": [
    "class BotsDemoClass(BotsClass):\n",
    "\n",
    "    def __init__(self, username, password, target_stocks: list):\n",
    "        \"\"\"\n",
    "        login & init: 在每个自然日比赛开始前或者交易所运行期间启动程序，系统将自动执行login函数以连接交易所，并调用init函数进行该自然日比赛的初始化\n",
    "        \"\"\"\n",
    "        super().__init__(username, password)\n",
    "        self.api = InterfaceClass(\"https://trading.competition.ubiquant.com\")\n",
    "        self.target_stocks = target_stocks\n",
    "        self.tick_data = dict()\n",
    "        self.process = dict()\n",
    "\n",
    "    def login(self):\n",
    "        response = self.api.sendLogin(self.username, self.password)\n",
    "        if response[\"status\"] == \"Success\":\n",
    "            self.token_ub = response[\"token_ub\"]\n",
    "            logger.info(\"Login Success: {}\".format(self.token_ub))\n",
    "        else:\n",
    "            logger.info(\"Login Error: \", response[\"status\"])\n",
    "\n",
    "    def GetInstruments(self):\n",
    "        response = self.api.sendGetInstrumentInfo(self.token_ub)\n",
    "        if response[\"status\"] == \"Success\":\n",
    "            self.instruments = []\n",
    "            for instrument in response[\"instruments\"]:\n",
    "                self.instruments.append(instrument[\"instrument_name\"])\n",
    "            logger.info(\"Get Instruments: {}\".format(self.instruments))\n",
    "\n",
    "    def init(self):\n",
    "        \"\"\"\n",
    "        login & init: 在每个自然日比赛开始前或者交易所运行期间启动程序，系统将自动执行login函数以连接交易所，并调用init函数进行该自然日比赛的初始化\n",
    "        \"\"\"\n",
    "        response = self.api.sendGetGameInfo(self.token_ub)\n",
    "        if response[\"status\"] == \"Success\":\n",
    "            self.start_time = response[\"next_game_start_time\"]\n",
    "            self.running_days = response[\"next_game_running_days\"]\n",
    "            self.running_time = response[\"next_game_running_time\"]\n",
    "            self.time_ratio = response[\"next_game_time_ratio\"]\n",
    "        self.GetInstruments()\n",
    "        self.day = 0\n",
    "        self.instruments_information = [[] for _ in range(29)]\n",
    "\n",
    "        for stock in self.target_stocks:\n",
    "            self.tick_data[stock] = DataManager(self, stock)\n",
    "\n",
    "    def bod(self):\n",
    "        \"\"\"\n",
    "        bod: 在每个交易日开始的时候会调用这个函数，用于每天交易策略的初始化。\n",
    "        \"\"\"\n",
    "        # for stock in self.target_stocks:\n",
    "        #     tmp_process = multiprocessing.Process(target=self.UpdateTickData, name=stock, args=(stock,))\n",
    "        #     self.process.append(tmp_process)\n",
    "        #     tmp_process.start()\n",
    "        # print(f\"已开启{len(self.target_stocks)}个进程: {multiprocessing.active_children()}\")\n",
    "        pass\n",
    "\n",
    "    def work(self):\n",
    "        \"\"\"\n",
    "        work: 你程序化交易策略的实现。每次调用你可进行查询并处理行情、下单、撤单等操作\n",
    "        \"\"\"\n",
    "        stockID = random.randint(0, len(self.instruments) - 1)\n",
    "        LOB = self.api.sendGetLimitOrderBook(self.token_ub, self.instruments[stockID])\n",
    "        if LOB[\"status\"] == \"Success\":\n",
    "            askprice_1 = float(LOB[\"lob\"][\"askprice\"][0])\n",
    "            t = ConvertToSimTime_us(self.start_time, self.time_ratio, self.day, self.running_time)\n",
    "            response = self.api.sendOrder(self.token_ub, self.instruments[stockID], t, \"buy\", askprice_1, 100)\n",
    "\n",
    "    def eod(self):\n",
    "        \"\"\"\n",
    "        eod: 在每个交易日结束的时候会调用这个函数，你可以用于每天交易结束时执行一些操作。\n",
    "        \"\"\"\n",
    "        # for stock in self.target_stocks:\n",
    "        #     df = pd.DataFrame(self.tick_data[stock].tick_data)\n",
    "        #     df.to_csv(f\"{stock}.csv\")\n",
    "        pass\n",
    "\n",
    "    def final(self):\n",
    "        \"\"\"\n",
    "        final: 在每个自然日比赛结束的时候会调用这个函数，你可以在比赛结束后自己做一些处理工作，以供分析。\n",
    "        \"\"\"\n",
    "        pass\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "b237dd9c-7ff5-4b1e-b681-5a96de853390",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-06 09:47:48,225 [INFO] Login Success: UBIQ_TEAM080_J9lc1nOzo\n",
      "2023-12-06 09:47:48,226 [DEBUG] GetGameInfo: \n",
      "2023-12-06 09:47:48,268 [DEBUG] GetInstrumentInfo: \n",
      "2023-12-06 09:47:48,310 [INFO] Get Instruments: ['UBIQ000', 'UBIQ001', 'UBIQ002', 'UBIQ003', 'UBIQ004', 'UBIQ005', 'UBIQ006', 'UBIQ007', 'UBIQ008', 'UBIQ009', 'UBIQ010', 'UBIQ011', 'UBIQ012', 'UBIQ013', 'UBIQ014', 'UBIQ015', 'UBIQ016', 'UBIQ017', 'UBIQ018', 'UBIQ019', 'UBIQ020', 'UBIQ021', 'UBIQ022', 'UBIQ023', 'UBIQ024', 'UBIQ025', 'UBIQ026', 'UBIQ027', 'UBIQ028']\n"
     ]
    }
   ],
   "source": [
    "bot = BotsDemoClass(\"UBIQ_TEAM080\", \"J9lc1nOzo\", [\"UBIQ027\", \"UBIQ023\"])\n",
    "bot.login()\n",
    "bot.init()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "622cfcee-043e-4ef2-aa61-f9baabd57d38",
   "metadata": {},
   "outputs": [],
   "source": [
    "from threading import Thread\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "de2c84be-0060-4781-b67e-62087b64da8a",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:11,120 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ000\n",
      "2023-12-05 10:41:11,260 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ001\n",
      "2023-12-05 10:41:11,364 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ002\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ000', 'lob': {'localtime': 6709, 'limit_up_price': 14.6, 'limit_down_price': 11.94, 'bidprice': [13.34, 13.33, 13.32, 13.3, 13.29, 13.28, 13.27, 13.25, 13.23, 13.22], 'askprice': [13.35, 13.37, 13.38, 13.4, 13.41, 13.42, 13.43, 13.44, 13.45, 13.46], 'bidvolume': [6100, 100, 2400, 400, 1700, 8200, 4000, 31500, 1700, 6600], 'askvolume': [300, 1500, 800, 12700, 9000, 2300, 1200, 500, 14400, 3000], 'last_price': 13.34, 'trade_volume': 849500, 'trade_value': 11318683}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ001', 'lob': {'localtime': 6710, 'limit_up_price': 7.11, 'limit_down_price': 5.81, 'bidprice': [6.51, 6.5, 6.49, 6.48, 6.46, 6.45, 6.42, 6.41, 6.4, 6.390000000000001], 'askprice': [6.52, 6.53, 6.54, 6.55, 6.56, 6.57, 6.58, 6.59, 6.600000000000001, 6.61], 'bidvolume': [7600, 4000, 1000, 1700, 1000, 1300, 100, 25800, 10800, 6000], 'askvolume': [300, 23700, 39700, 47200, 66200, 41500, 38500, 12200, 78400, 13700], 'last_price': 6.52, 'trade_volume': 3091500, 'trade_value': 20115807}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:11,467 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ003\n",
      "2023-12-05 10:41:11,567 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ004\n",
      "2023-12-05 10:41:11,669 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ005\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ002', 'lob': {'localtime': 6711, 'limit_up_price': 30.68, 'limit_down_price': 25.1, 'bidprice': [28.3, 28.29, 28.27, 28.26, 28.25, 28.24, 28.22, 28.21, 28.19, 28.17], 'askprice': [28.32, 28.33, 28.34, 28.35, 28.36, 28.38, 28.4, 28.44, 28.45, 28.47], 'bidvolume': [200, 100, 700, 400, 400, 400, 1800, 300, 1800, 100], 'askvolume': [100, 800, 1700, 900, 300, 1000, 5000, 400, 4100, 200], 'last_price': 28.32, 'trade_volume': 647500, 'trade_value': 18187440}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ003', 'lob': {'localtime': 6712, 'limit_up_price': 8.97, 'limit_down_price': 7.34, 'bidprice': [7.91, 7.9, 7.890000000000001, 7.88, 7.87, 7.86, 7.850000000000001, 7.84, 7.83, 7.82], 'askprice': [7.92, 7.930000000000001, 7.94, 7.95, 7.96, 7.97, 7.98, 7.99, 8, 8.01], 'bidvolume': [9100, 127800, 44500, 79500, 137700, 149500, 225100, 55700, 119700, 251000], 'askvolume': [98200, 64200, 21900, 47600, 9600, 12900, 10000, 54800, 33700, 65000], 'last_price': 7.91, 'trade_volume': 54376500, 'trade_value': 430710297}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ004', 'lob': {'localtime': 6713, 'limit_up_price': 7.29, 'limit_down_price': 5.97, 'bidprice': [6.56, 6.55, 6.54, 6.53, 6.52, 6.51, 6.5, 6.49, 6.48, 6.47], 'askprice': [6.57, 6.58, 6.59, 6.600000000000001, 6.61, 6.62, 6.63, 6.640000000000001, 6.65, 6.66], 'bidvolume': [13700, 29900, 34500, 38800, 136000, 97800, 144700, 47800, 38100, 10300], 'askvolume': [200, 900, 2000, 28800, 29200, 5000, 19700, 5800, 55900, 35700], 'last_price': 6.56, 'trade_volume': 4649100, 'trade_value': 30585358}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:11,772 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ006\n",
      "2023-12-05 10:41:11,873 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ007\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ005', 'lob': {'localtime': 6714, 'limit_up_price': 15.7, 'limit_down_price': 12.84, 'bidprice': [14.1, 14.09, 14.08, 14.07, 14.06, 14.05, 14.04, 14.03, 14.02, 14.01], 'askprice': [14.12, 14.13, 14.14, 14.15, 14.17, 14.18, 14.21, 14.22, 14.23, 14.24], 'bidvolume': [3600, 6900, 3500, 4200, 13400, 34700, 600, 2400, 500, 7400], 'askvolume': [2900, 2500, 1000, 100, 3000, 1200, 300, 2400, 100, 500], 'last_price': 14.12, 'trade_volume': 2439500, 'trade_value': 34591179}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ006', 'lob': {'localtime': 6715, 'limit_up_price': 8.4, 'limit_down_price': 6.88, 'bidprice': [7.47, 7.46, 7.45, 7.44, 7.43, 7.42, 7.41, 7.4, 7.390000000000001, 7.38], 'askprice': [7.48, 7.49, 7.5, 7.51, 7.52, 7.53, 7.54, 7.55, 7.56, 7.57], 'bidvolume': [2300, 20400, 304800, 126100, 64700, 106000, 104500, 734900, 238400, 379900], 'askvolume': [23400, 19000, 171200, 379000, 305500, 129700, 150800, 155300, 86100, 17600], 'last_price': 7.47, 'trade_volume': 32620300, 'trade_value': 243301272}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:11,976 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ008\n",
      "2023-12-05 10:41:12,078 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ009\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ007', 'lob': {'localtime': 6716, 'limit_up_price': 13.11, 'limit_down_price': 10.73, 'bidprice': [11.1, 11.09, 11.08, 11.07, 11.06, 11.05, 11.04, 11.03, 11.02, 11.01], 'askprice': [11.11, 11.12, 11.13, 11.14, 11.15, 11.16, 11.17, 11.18, 11.19, 11.2], 'bidvolume': [900, 900, 30000, 19800, 900, 24000, 2500, 500, 3600, 1700], 'askvolume': [14700, 5600, 600, 10300, 3600, 12500, 2700, 62300, 6400, 43600], 'last_price': 11.1, 'trade_volume': 33134600, 'trade_value': 366462313}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ008', 'lob': {'localtime': 6717, 'limit_up_price': 12.46, 'limit_down_price': 10.2, 'bidprice': [11.43, 11.42, 11.41, 11.4, 11.39, 11.38, 11.37, 11.36, 11.35, 11.34], 'askprice': [11.44, 11.45, 11.46, 11.47, 11.48, 11.49, 11.5, 11.51, 11.52, 11.53], 'bidvolume': [900, 6700, 400, 1500, 1700, 3800, 1900, 29400, 2000, 24100], 'askvolume': [2600, 17900, 2100, 3500, 3900, 2100, 26000, 4400, 400, 10800], 'last_price': 11.44, 'trade_volume': 1781700, 'trade_value': 20428664}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:12,181 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ010\n",
      "2023-12-05 10:41:12,283 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ011\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ009', 'lob': {'localtime': 6718, 'limit_up_price': 25.31, 'limit_down_price': 20.71, 'bidprice': [22.96, 22.94, 22.91, 22.9, 22.89, 22.88, 22.86, 22.85, 22.83, 22.82], 'askprice': [22.97, 22.98, 22.99, 23, 23.01, 23.02, 23.03, 23.05, 23.07, 23.08], 'bidvolume': [1300, 400, 300, 5300, 36700, 1100, 3500, 100, 100, 300], 'askvolume': [200, 7900, 3000, 10500, 1300, 4400, 500, 4800, 3900, 4800], 'last_price': 22.96, 'trade_volume': 6986600, 'trade_value': 161101086}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ010', 'lob': {'localtime': 6719, 'limit_up_price': 16.83, 'limit_down_price': 13.77, 'bidprice': [15.23, 15.22, 15.21, 15.2, 15.19, 15.18, 15.17, 15.16, 15.15, 15.14], 'askprice': [15.24, 15.25, 15.26, 15.27, 15.28, 15.29, 15.3, 15.31, 15.32, 15.33], 'bidvolume': [3800, 51700, 21600, 6500, 16200, 7100, 53900, 6800, 20200, 5200], 'askvolume': [125500, 116800, 43400, 44500, 34900, 35100, 267300, 156100, 16900, 19400], 'last_price': 15.24, 'trade_volume': 37206700, 'trade_value': 561266668}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:12,390 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ012\n",
      "2023-12-05 10:41:12,491 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ013\n",
      "2023-12-05 10:41:12,590 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ014\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ011', 'lob': {'localtime': 6720, 'limit_up_price': 4.47, 'limit_down_price': 3.65, 'bidprice': [4.05, 4.01, 4, 3.99, 3.98, 3.97, 3.96, 3.95, 3.94, 3.93], 'askprice': [4.06, 4.07, 4.08, 4.09, 4.1, 4.11, 4.12, 4.13, 4.14, 4.15], 'bidvolume': [7300, 75300, 191900, 66400, 58700, 64600, 42500, 14900, 1000, 12200], 'askvolume': [132000, 59600, 88600, 118100, 166300, 304600, 155400, 168000, 129700, 26900], 'last_price': 4.05, 'trade_volume': 4949600, 'trade_value': 20088802}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ012', 'lob': {'localtime': 6721, 'limit_up_price': 1.68, 'limit_down_price': 1.38, 'bidprice': [1.48, 1.47, 1.46, 1.45, 1.44, 1.43, 1.42, 1.41, 1.4, 1.39], 'askprice': [1.49, 1.5, 1.51, 1.52, 1.53, 1.54, 1.55, 1.56, 1.57, 1.58], 'bidvolume': [10006500, 9445100, 10047200, 9532600, 4617800, 8742600, 7089900, 8126400, 7690900, 3388100], 'askvolume': [3382100, 5784100, 2961400, 4221500, 7507700, 4092100, 6028000, 7105500, 9553300, 15610900], 'last_price': 1.49, 'trade_volume': 293152200, 'trade_value': 437020295}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ013', 'lob': {'localtime': 6722, 'limit_up_price': 24, 'limit_down_price': 19.64, 'bidprice': [22.03, 22.02, 22.01, 21.99, 21.98, 21.97, 21.96, 21.95, 21.94, 21.93], 'askprice': [22.04, 22.05, 22.06, 22.07, 22.08, 22.09, 22.1, 22.11, 22.12, 22.13], 'bidvolume': [900, 1500, 800, 1000, 1800, 700, 2100, 4300, 15300, 2000], 'askvolume': [4600, 32200, 10000, 12100, 29200, 13300, 137600, 5800, 6800, 5100], 'last_price': 22.04, 'trade_volume': 3175600, 'trade_value': 69699423}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:12,693 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ015\n",
      "2023-12-05 10:41:12,798 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ016\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ014', 'lob': {'localtime': 6723, 'limit_up_price': 6.29, 'limit_down_price': 5.15, 'bidprice': [5.72, 5.71, 5.7, 5.69, 5.68, 5.67, 5.66, 5.65, 5.64, 5.63], 'askprice': [5.73, 5.74, 5.75, 5.76, 5.77, 5.78, 5.79, 5.8, 5.81, 5.82], 'bidvolume': [2400, 6100, 97700, 80400, 99100, 13900, 42700, 116200, 9000, 20500], 'askvolume': [4200, 11000, 7300, 6000, 25900, 42200, 111300, 109900, 33400, 108500], 'last_price': 5.73, 'trade_volume': 5338800, 'trade_value': 30676185}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ015', 'lob': {'localtime': 6724, 'limit_up_price': 10.59, 'limit_down_price': 8.67, 'bidprice': [9.64, 9.63, 9.620000000000001, 9.61, 9.6, 9.59, 9.58, 9.57, 9.56, 9.55], 'askprice': [9.65, 9.66, 9.67, 9.68, 9.69, 9.700000000000001, 9.71, 9.72, 9.73, 9.74], 'bidvolume': [2200, 2300, 26400, 17200, 6000, 10400, 57800, 18100, 16300, 53200], 'askvolume': [54200, 61700, 99200, 42400, 59400, 143900, 48600, 128000, 26100, 24100], 'last_price': 9.65, 'trade_volume': 5939900, 'trade_value': 57268892}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ016', 'lob': {'localtime': 6725, 'limit_up_price': 11.25, 'limit_down_price': 9.21, 'bidprice': [10.28, 10.27, 10.26, 10.25, 10.24, 10.23, 10.22, 10.21, 10.2, 10.19], 'askprice': [10.29, 10.3, 10.31, 10.34, 10.35, 10.36, 10.37, 10.38, 10.4, 10.41], 'bidvolume': [1000, 700, 1100, 800, 900, 1400, 24500, 5000, 11200, 5800], 'askvolume': [400, 100, 500, 400, 11000, 2000, 1700, 6000, 21700, 800], 'last_price': 10.29, 'trade_volume': 1107800, 'trade_value': 11447279}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:12,898 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ017\n",
      "2023-12-05 10:41:13,001 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ018\n",
      "2023-12-05 10:41:13,106 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ019\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ017', 'lob': {'localtime': 6726, 'limit_up_price': 266.61, 'limit_down_price': 218.13, 'bidprice': [246.71, 246.7, 246.68, 246.67, 246.66, 246.62, 246.61, 246.6, 246.59, 246.58], 'askprice': [246.84, 246.88, 246.99, 247, 247.13, 247.66, 247.67, 247.88, 247.91, 247.94], 'bidvolume': [300, 1300, 200, 100, 500, 1000, 100, 100, 800, 1300], 'askvolume': [100, 200, 200, 6700, 100, 100, 200, 100, 200, 500], 'last_price': 246.77, 'trade_volume': 1188800, 'trade_value': 294082040}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ018', 'lob': {'localtime': 6727, 'limit_up_price': 12.16, 'limit_down_price': 9.950000000000001, 'bidprice': [10.96, 10.95, 10.94, 10.93, 10.92, 10.91, 10.9, 10.89, 10.88, 10.87], 'askprice': [10.98, 10.99, 11, 11.01, 11.02, 11.03, 11.04, 11.05, 11.06, 11.07], 'bidvolume': [900, 1200, 13300, 25700, 15700, 40000, 94600, 1000, 37500, 12100], 'askvolume': [5600, 21100, 115900, 42700, 84500, 26800, 48100, 60200, 63800, 50300], 'last_price': 10.98, 'trade_volume': 4788300, 'trade_value': 52626005}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:13,206 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ020\n",
      "2023-12-05 10:41:13,309 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ021\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ019', 'lob': {'localtime': 6728, 'limit_up_price': 1.79, 'limit_down_price': 1.47, 'bidprice': [1.59, 1.58, 1.57, 1.56, 1.55, 1.54, 1.53, 1.52, 1.51, 1.5], 'askprice': [1.6, 1.61, 1.62, 1.63, 1.64, 1.65, 1.66, 1.67, 1.68, 1.69], 'bidvolume': [3347300, 8261200, 3486100, 2654400, 2161000, 1321400, 820000, 416000, 532100, 827200], 'askvolume': [3539100, 1744900, 2364900, 2303500, 2611100, 2533600, 2165700, 1174000, 2516500, 1816300], 'last_price': 1.59, 'trade_volume': 66330400, 'trade_value': 105908420}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ020', 'lob': {'localtime': 6729, 'limit_up_price': 9.08, 'limit_down_price': 7.43, 'bidprice': [8.25, 8.24, 8.23, 8.22, 8.2, 8.19, 8.18, 8.17, 8.16, 8.15], 'askprice': [8.26, 8.27, 8.28, 8.290000000000001, 8.3, 8.31, 8.32, 8.33, 8.34, 8.35], 'bidvolume': [100, 100, 8800, 100, 3300, 85700, 117100, 68700, 71200, 41600], 'askvolume': [14700, 5800, 47400, 40900, 89000, 46000, 130300, 93900, 148900, 166200], 'last_price': 8.25, 'trade_volume': 8130300, 'trade_value': 67058872}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:13,410 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ022\n",
      "2023-12-05 10:41:13,514 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ021', 'lob': {'localtime': 6730, 'limit_up_price': 14.96, 'limit_down_price': 12.24, 'bidprice': [13.91, 13.9, 13.89, 13.88, 13.87, 13.86, 13.85, 13.84, 13.83, 13.82], 'askprice': [13.92, 13.93, 13.94, 13.95, 13.96, 13.97, 13.98, 13.99, 14, 14.01], 'bidvolume': [100, 65700, 25500, 5800, 300, 25200, 11900, 7600, 7400, 12800], 'askvolume': [700, 1800, 18900, 38100, 38100, 27900, 55000, 58800, 68900, 4000], 'last_price': 13.9, 'trade_volume': 4061900, 'trade_value': 56218150}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ022', 'lob': {'localtime': 6731, 'limit_up_price': 2.34, 'limit_down_price': 1.92, 'bidprice': [2.13, 2.12, 2.11, 2.1, 2.09, 2.08, 2.07, 2.06, 2.05, 2.04], 'askprice': [2.14, 2.15, 2.16, 2.17, 2.18, 2.19, 2.2, 2.21, 2.22, 2.23], 'bidvolume': [1640000, 860000, 376000, 202300, 165300, 70900, 19600, 14300, 27700, 11500], 'askvolume': [1800, 2760900, 2281100, 1399000, 1032400, 2911300, 575700, 237500, 164900, 291500], 'last_price': 2.14, 'trade_volume': 7953900, 'trade_value': 17021957}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:13,616 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ024\n",
      "2023-12-05 10:41:13,718 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ025\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ023', 'lob': {'localtime': 6732, 'limit_up_price': 4.63, 'limit_down_price': 3.79, 'bidprice': [4.08, 4.07, 4.06, 4.05, 4.04, 4.03, 4.02, 4.01, 4, 3.99], 'askprice': [4.09, 4.1, 4.11, 4.12, 4.13, 4.14, 4.15, 4.16, 4.17, 4.18], 'bidvolume': [2800, 50000, 238500, 332900, 18900, 78800, 57500, 90800, 514300, 13100], 'askvolume': [27100, 5100, 900, 25900, 84200, 100200, 10000, 50300, 51700, 44300], 'last_price': 4.09, 'trade_volume': 19498100, 'trade_value': 81126550}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ024', 'lob': {'localtime': 6733, 'limit_up_price': 7.21, 'limit_down_price': 5.9, 'bidprice': [6.57, 6.56, 6.55, 6.54, 6.53, 6.52, 6.51, 6.5, 6.49, 6.48], 'askprice': [6.62, 6.63, 6.640000000000001, 6.65, 6.66, 6.67, 6.68, 6.69, 6.7, 6.71], 'bidvolume': [32900, 8400, 4100, 9900, 6600, 34100, 18300, 15700, 2000, 800], 'askvolume': [800, 13900, 5000, 7100, 5900, 32100, 17900, 4000, 16100, 14000], 'last_price': 6.57, 'trade_volume': 1425600, 'trade_value': 9381865}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:13,819 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ026\n",
      "2023-12-05 10:41:13,921 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ027\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ025', 'lob': {'localtime': 6734, 'limit_up_price': 12.63, 'limit_down_price': 10.33, 'bidprice': [11.62, 11.61, 11.6, 11.59, 11.58, 11.57, 11.56, 11.55, 11.54, 11.53], 'askprice': [11.63, 11.64, 11.65, 11.66, 11.67, 11.68, 11.69, 11.7, 11.71, 11.72], 'bidvolume': [27200, 5500, 800, 6300, 9400, 7200, 2400, 36700, 13100, 3100], 'askvolume': [35600, 28800, 28100, 15600, 4600, 21500, 29600, 124600, 9100, 25300], 'last_price': 11.62, 'trade_volume': 10010400, 'trade_value': 116680274}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ026', 'lob': {'localtime': 6735, 'limit_up_price': 292.17, 'limit_down_price': 239.05, 'bidprice': [267.88, 267.87, 267.86, 267.85, 267.84, 267.83, 267.8, 267.77, 267.76, 267.75], 'askprice': [267.9, 267.91, 267.92, 268, 268.01, 268.03, 268.14, 268.15, 268.17, 268.2], 'bidvolume': [700, 100, 100, 1600, 200, 300, 3600, 100, 200, 200], 'askvolume': [100, 600, 100, 800, 3400, 300, 600, 500, 100, 400], 'last_price': 267.89, 'trade_volume': 5107100, 'trade_value': 1366121792}, 'status': 'Success'}\n",
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ027', 'lob': {'localtime': 6736, 'limit_up_price': 3, 'limit_down_price': 2.46, 'bidprice': [2.74, 2.73, 2.72, 2.71, 2.7, 2.69, 2.68, 2.67, 2.66, 2.65], 'askprice': [2.75, 2.76, 2.77, 2.78, 2.79, 2.8, 2.81, 2.82, 2.83, 2.84], 'bidvolume': [7908300, 5048500, 3973900, 879200, 900900, 33500, 63800, 11300, 25800, 16900], 'askvolume': [6700400, 3187200, 1394500, 1480500, 827700, 321400, 721300, 209100, 290600, 150800], 'last_price': 2.75, 'trade_volume': 7235600, 'trade_value': 19839148}, 'status': 'Success'}\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 10:41:14,028 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ028\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'response_type': 'get_limit_order_book_response', 'instrument': 'UBIQ028', 'lob': {'localtime': 6737, 'limit_up_price': 16.14, 'limit_down_price': 13.2, 'bidprice': [14.93, 14.92, 14.91, 14.9, 14.89, 14.88, 14.87, 14.86, 14.85, 14.84], 'askprice': [14.94, 14.95, 14.96, 14.97, 14.98, 14.99, 15, 15.01, 15.02, 15.03], 'bidvolume': [3000, 4200, 27500, 24600, 6900, 11700, 4000, 15800, 15600, 10100], 'askvolume': [11500, 9700, 900, 6300, 4900, 7400, 47900, 3300, 4900, 600], 'last_price': 14.94, 'trade_volume': 18645200, 'trade_value': 278177169}, 'status': 'Success'}\n"
     ]
    }
   ],
   "source": [
    "bot.get_instruments_information()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "id": "4b2d7473-e5b6-4866-bf6d-949b269cc05f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(1701734400, 28, 1800, 10)\n"
     ]
    }
   ],
   "source": [
    "print(f\"{bot.start_time, bot.running_days, bot.running_time, bot.time_ratio}\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "id": "2f190a5e-8422-4b7d-a41b-37a397524665",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "216638.64427804947"
      ]
     },
     "execution_count": 85,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ConvertToSimTime_us(bot.start_time, bot.time_ratio, bot.day, bot.running_time)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "id": "05b5ccca-4eaa-44b9-9f7a-93d1b0332ebe",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 13:06:11,838 [DEBUG] GetGameInfo: \n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "{'response_type': 'get_game_info_response',\n",
       " 'next_game_start_time': 1701734400,\n",
       " 'next_game_running_days': 28,\n",
       " 'next_game_running_time': 1800,\n",
       " 'next_game_time_ratio': 10,\n",
       " 'status': 'Success'}"
      ]
     },
     "execution_count": 68,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "bot.api.sendGetGameInfo(bot.token_ub)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 115,
   "id": "18fce8c0-fbfe-43c0-86fc-f41d79b7ec7e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1\n",
      "2\n"
     ]
    }
   ],
   "source": [
    "for i in range(1, 3):\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "0db2e17c-ad56-47dc-bb89-ff068002dd32",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:42,722 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:42,841 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:42,944 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:43,046 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:43,149 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:43,251 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:43,352 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:43,457 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:43,557 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:43,659 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:43,762 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:43,866 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:43,968 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:44,072 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:44,174 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:44,276 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:44,377 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:44,480 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:44,582 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:44,684 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:44,787 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:44,890 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:44,992 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:45,094 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:45,195 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:45,301 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:45,403 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:45,504 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:45,607 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:45,709 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:45,811 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:45,914 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:46,017 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:46,120 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:46,220 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:46,323 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:46,426 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:46,528 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:46,631 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:46,734 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:46,836 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:46,938 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:47,038 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:47,143 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:47,245 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:47,347 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:47,448 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:47,552 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:47,653 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:47,758 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:47,859 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:47,963 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:48,064 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:48,167 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:48,268 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:48,372 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:48,475 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:48,575 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:48,678 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:48,783 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:48,882 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:48,985 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:49,088 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:49,192 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:49,293 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:49,394 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:49,497 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:49,600 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:49,703 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:49,805 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:49,907 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:50,011 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:50,111 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:50,214 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:50,317 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:50,419 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:50,522 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:50,624 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:50,728 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:50,829 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:50,931 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:51,037 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:51,136 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:51,241 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:51,340 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:51,447 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:51,546 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:51,648 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:51,750 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:51,854 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:51,955 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:52,057 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:52,161 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:52,263 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:52,365 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:52,470 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:52,569 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:52,671 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:52,774 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:53,286 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:53,389 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:53,492 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:53,594 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:53,696 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:53,800 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:53,901 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:54,005 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:54,107 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:54,207 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:54,311 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:54,412 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:54,515 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:54,617 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:54,724 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:54,823 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:54,928 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:55,027 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:55,132 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:55,232 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:55,334 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:55,439 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:55,540 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:55,642 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:55,745 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:55,848 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:55,951 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:56,053 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:56,157 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:56,256 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:56,359 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:56,460 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:56,563 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:56,665 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:56,769 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:56,873 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:56,975 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:57,076 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:57,177 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:57,280 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:57,384 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:57,486 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:57,589 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:57,694 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:57,793 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:57,896 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:57,998 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:58,101 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:58,204 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:58,305 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:58,408 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:58,510 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:58,612 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:58,715 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:58,820 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:58,919 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:59,020 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:59,125 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:59,225 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:59,327 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:59,430 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:59,533 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:59,636 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:59,738 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:17:59,840 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:17:59,943 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:00,046 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:00,147 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:00,250 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:00,352 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:00,455 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:00,557 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:00,659 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:00,762 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:00,865 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:00,968 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:01,071 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:01,172 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:01,273 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:01,377 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:01,483 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:01,582 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:01,683 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:01,787 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:01,890 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:01,991 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:02,093 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:02,196 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:02,299 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:02,401 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:02,504 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:02,606 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:02,709 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:02,809 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:02,914 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:03,014 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:03,121 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:03,220 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:03,322 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:03,424 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:03,835 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:03,938 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:04,040 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:04,144 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:04,243 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:04,346 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:04,449 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:04,553 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:04,653 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:04,755 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:04,859 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:04,963 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:05,064 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:05,165 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:05,269 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:05,371 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:05,473 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:05,574 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:05,677 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:05,782 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:05,881 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:05,986 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:06,088 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:06,190 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:06,292 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:06,394 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:06,497 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:06,598 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:06,701 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:06,806 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:06,907 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:07,008 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:07,111 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:07,214 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:07,317 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:07,418 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:07,521 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:07,624 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:07,727 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:07,829 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:07,930 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:08,033 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:08,135 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:08,238 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:08,342 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:08,444 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:08,545 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:08,648 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:08,749 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:08,852 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:08,956 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:09,058 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:09,158 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:09,262 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:09,366 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:09,467 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:09,570 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:09,673 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:09,776 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:09,876 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:09,977 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:10,082 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:10,184 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:10,286 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:10,388 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:10,492 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:10,592 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:10,695 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:10,798 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:10,901 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:11,001 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:11,107 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:11,207 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:11,311 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:11,412 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:11,516 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:11,617 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:11,722 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:11,821 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:11,925 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:12,026 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:12,131 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:12,231 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:12,333 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:12,437 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:12,539 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:12,642 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:12,744 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:12,845 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:12,950 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:13,052 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:13,155 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:13,255 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:13,357 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:13,458 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:13,564 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:13,664 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:13,768 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:13,869 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:13,973 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:14,383 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:14,485 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:14,587 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:14,689 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:14,793 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:14,894 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:14,998 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:15,098 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:15,203 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:15,303 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:15,405 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:15,508 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:15,611 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:15,713 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:15,814 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:15,919 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:16,020 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:16,124 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:16,226 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:16,328 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:16,430 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:16,531 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:16,634 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:16,736 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:16,841 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:16,943 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:17,045 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:17,148 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:17,250 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:17,352 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:17,454 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:17,555 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:17,659 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:17,761 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:17,865 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:17,966 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:18,068 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:18,172 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:18,272 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:18,376 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:18,478 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:18,581 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:18,682 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:18,785 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:18,888 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:18,991 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:19,093 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:19,196 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:19,298 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:19,402 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:19,502 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:19,605 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:19,707 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:19,810 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:19,914 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:20,015 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:20,115 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:20,221 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:20,322 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:20,425 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:20,526 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:20,629 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:20,730 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:20,835 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:20,935 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:21,041 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:21,142 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:21,243 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:21,346 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:21,448 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:21,550 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:21,653 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:21,755 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:21,858 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:21,962 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:22,063 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:22,165 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:22,267 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:22,368 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:22,473 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:22,574 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:22,677 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:22,779 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:22,883 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:22,985 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:23,087 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:23,189 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:23,290 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:23,395 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:23,496 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:23,597 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:23,702 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:23,803 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:23,907 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:24,009 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:24,111 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:24,213 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:24,315 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:24,420 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:24,520 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:25,032 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:25,136 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:25,237 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:25,338 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:25,442 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:25,546 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:25,648 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:25,750 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:25,851 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:25,955 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:26,056 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:26,160 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:26,260 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:26,364 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:26,465 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:26,569 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:26,671 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:26,774 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:26,875 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:26,978 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:27,079 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:27,184 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:27,285 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:27,387 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:27,491 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:27,594 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:27,696 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:27,796 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:27,899 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:28,002 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:28,104 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:28,206 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:28,309 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:28,411 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:28,515 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:28,617 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:28,721 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:28,822 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:28,925 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:29,026 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:29,130 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:29,237 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:29,334 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:29,435 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:29,539 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:29,640 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:29,744 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:29,845 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:29,949 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:30,050 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:30,152 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:30,255 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:30,358 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:30,461 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:30,562 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:30,665 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:30,768 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:30,869 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:30,971 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:31,073 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:31,176 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:31,279 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:31,381 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:31,483 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:31,588 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:31,689 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:31,791 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:31,895 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:31,995 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:32,096 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:32,201 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:32,304 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:32,405 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:32,507 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:32,610 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:32,714 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:32,814 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:32,917 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:33,019 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:33,123 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:33,226 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:33,327 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:33,430 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:33,530 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:33,635 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:33,736 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:33,839 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:33,940 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:34,043 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:34,146 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:34,247 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:34,350 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:34,455 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:34,556 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:34,660 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:34,760 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:34,862 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:34,966 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:35,069 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n",
      "2023-12-05 11:18:35,170 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 11:18:35,581 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "44, tmp_ls\n",
      "44, tmp_ls\n"
     ]
    }
   ],
   "source": [
    "rows, columns = 14400, 44\n",
    "ob_000 = np.zeros((rows, columns))\n",
    "localtime = None\n",
    "for i in range(500):\n",
    "    LOB = bot.api.sendGetLimitOrderBook(bot.token_ub, \"UBIQ023\")\n",
    "    if LOB[\"status\"] == \"Success\":\n",
    "        if localtime != LOB[\"lob\"][\"localtime\"]:\n",
    "            tmp_ls = [LOB[\"lob\"][\"localtime\"], LOB[\"lob\"][\"last_price\"], LOB[\"lob\"][\"trade_value\"], \n",
    "                      LOB[\"lob\"][\"trade_volume\"]]\n",
    "            tmp_ls = (tmp_ls + LOB[\"lob\"][\"bidprice\"] + LOB[\"lob\"][\"askprice\"] + \n",
    "                      LOB[\"lob\"][\"bidvolume\"] + LOB[\"lob\"][\"askvolume\"])\n",
    "            ob_000[i, :] = np.array(tmp_ls)\n",
    "            localtime = LOB[\"lob\"][\"localtime\"]\n",
    "    time.sleep(0.01)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 118,
   "id": "c36fb3d8-17de-4098-a6ae-0e619dd8d892",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2023-12-05 14:58:57,705 [DEBUG] GetLimitOrderBOok: Instrument: UBIQ023\n"
     ]
    }
   ],
   "source": [
    "LOB = bot.api.sendGetLimitOrderBook(bot.token_ub, \"UBIQ023\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 119,
   "id": "73668b89-c5e9-44d5-b87c-3fc32be3b1be",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'response_type': 'get_limit_order_book_response',\n",
       " 'instrument': None,\n",
       " 'lob': None,\n",
       " 'status': 'Invalid Time'}"
      ]
     },
     "execution_count": 119,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "LOB"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 126,
   "id": "55dfaa0c-cd3b-47fa-9adc-09982d7370ea",
   "metadata": {},
   "outputs": [],
   "source": [
    "def updateTickData(stock_code):\n",
    "    rows, columns = 14400, 44\n",
    "    ObData = np.zeros((rows, columns))\n",
    "    LOB = bot.api.sendGetLimitOrderBook(bot.token_ub, stock_code)\n",
    "    localtime = LOB[\"lob\"][\"localtime\"]\n",
    "    tmp_ls = [localtime, LOB[\"lob\"][\"last_price\"], LOB[\"lob\"][\"trade_value\"],\n",
    "              LOB[\"lob\"][\"trade_volume\"]]\n",
    "    tmp_ls = (tmp_ls + LOB[\"lob\"][\"bidprice\"] + LOB[\"lob\"][\"askprice\"] +\n",
    "              LOB[\"lob\"][\"bidvolume\"] + LOB[\"lob\"][\"askvolume\"])\n",
    "    ObData[localtime, :] = np.array(tmp_ls)\n",
    "    while True:\n",
    "        LOB = bot.api.sendGetLimitOrderBook(bot.token_ub, stock_code)\n",
    "        if LOB[\"status\"] == \"Success\" and localtime != LOB[\"lob\"][\"localtime\"]:\n",
    "            localtime = LOB[\"lob\"][\"localtime\"]\n",
    "            tmp_ls = [LOB[\"lob\"][\"localtime\"], LOB[\"lob\"][\"last_price\"], LOB[\"lob\"][\"trade_value\"],\n",
    "                      LOB[\"lob\"][\"trade_volume\"]]\n",
    "            tmp_ls = (tmp_ls + LOB[\"lob\"][\"bidprice\"] + LOB[\"lob\"][\"askprice\"] +\n",
    "                      LOB[\"lob\"][\"bidvolume\"] + LOB[\"lob\"][\"askvolume\"])\n",
    "            ObData[localtime, :] = np.array(tmp_ls)\n",
    "        if localtime >= 14399:\n",
    "            break\n",
    "        time.sleep(0.05)\n",
    "    return ObData"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5c926c77-9ae3-46cd-846c-94b660ef421c",
   "metadata": {},
   "outputs": [],
   "source": [
    "stock_codes = [\"UBIQ023\", \"UBIQ013\"]\n",
    "pro_ls = list()\n",
    "for stock in stock_codes:\n",
    "    process = multiprocessing.Process(target=updateTickData, name=stock,args=(stock, ))\n",
    "    pro_ls.append(process)\n",
    "for p in pro_ls:\n",
    "    p.join()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c9e9f4b5-99ac-4fc0-94b2-801237f16fd4",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 123,
   "id": "75defe4e-3f2b-4f3c-a279-0c8d693912bd",
   "metadata": {},
   "outputs": [],
   "source": [
    "data = pd.DataFrame(ObData)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 125,
   "id": "a6154941-769b-4a7d-b7d9-9470e3169bf6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>...</th>\n",
       "      <th>34</th>\n",
       "      <th>35</th>\n",
       "      <th>36</th>\n",
       "      <th>37</th>\n",
       "      <th>38</th>\n",
       "      <th>39</th>\n",
       "      <th>40</th>\n",
       "      <th>41</th>\n",
       "      <th>42</th>\n",
       "      <th>43</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>4000</th>\n",
       "      <td>4000.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21529851.0</td>\n",
       "      <td>5347900.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>64700.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>145900.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4001</th>\n",
       "      <td>4001.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21539499.0</td>\n",
       "      <td>5350300.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>62300.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>145900.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4002</th>\n",
       "      <td>4002.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21539499.0</td>\n",
       "      <td>5350300.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>62300.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>145900.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4003</th>\n",
       "      <td>4003.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21539499.0</td>\n",
       "      <td>5350300.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>62300.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>145900.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4004</th>\n",
       "      <td>4004.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21568845.0</td>\n",
       "      <td>5357600.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>55000.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>145900.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4005</th>\n",
       "      <td>4005.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21578493.0</td>\n",
       "      <td>5360000.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>52600.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>145900.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4006</th>\n",
       "      <td>4006.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>21578894.0</td>\n",
       "      <td>5360100.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>52600.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>122200.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4007</th>\n",
       "      <td>4007.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21588542.0</td>\n",
       "      <td>5362500.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>50200.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>122200.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4008</th>\n",
       "      <td>4008.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21588542.0</td>\n",
       "      <td>5362500.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>50200.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>122200.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4009</th>\n",
       "      <td>4009.0</td>\n",
       "      <td>4.02</td>\n",
       "      <td>21588542.0</td>\n",
       "      <td>5362500.0</td>\n",
       "      <td>4.01</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.99</td>\n",
       "      <td>3.98</td>\n",
       "      <td>3.97</td>\n",
       "      <td>3.96</td>\n",
       "      <td>...</td>\n",
       "      <td>50200.0</td>\n",
       "      <td>6000.0</td>\n",
       "      <td>15800.0</td>\n",
       "      <td>196300.0</td>\n",
       "      <td>122200.0</td>\n",
       "      <td>186600.0</td>\n",
       "      <td>208100.0</td>\n",
       "      <td>174900.0</td>\n",
       "      <td>146800.0</td>\n",
       "      <td>89600.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>10 rows × 44 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "          0     1           2          3     4    5     6     7     8     9   \\\n",
       "4000  4000.0  4.02  21529851.0  5347900.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4001  4001.0  4.02  21539499.0  5350300.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4002  4002.0  4.02  21539499.0  5350300.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4003  4003.0  4.02  21539499.0  5350300.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4004  4004.0  4.02  21568845.0  5357600.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4005  4005.0  4.02  21578493.0  5360000.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4006  4006.0  4.01  21578894.0  5360100.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4007  4007.0  4.02  21588542.0  5362500.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4008  4008.0  4.02  21588542.0  5362500.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "4009  4009.0  4.02  21588542.0  5362500.0  4.01  4.0  3.99  3.98  3.97  3.96   \n",
       "\n",
       "      ...       34      35       36        37        38        39        40  \\\n",
       "4000  ...  64700.0  6000.0  15800.0  196300.0  145900.0  186600.0  208100.0   \n",
       "4001  ...  62300.0  6000.0  15800.0  196300.0  145900.0  186600.0  208100.0   \n",
       "4002  ...  62300.0  6000.0  15800.0  196300.0  145900.0  186600.0  208100.0   \n",
       "4003  ...  62300.0  6000.0  15800.0  196300.0  145900.0  186600.0  208100.0   \n",
       "4004  ...  55000.0  6000.0  15800.0  196300.0  145900.0  186600.0  208100.0   \n",
       "4005  ...  52600.0  6000.0  15800.0  196300.0  145900.0  186600.0  208100.0   \n",
       "4006  ...  52600.0  6000.0  15800.0  196300.0  122200.0  186600.0  208100.0   \n",
       "4007  ...  50200.0  6000.0  15800.0  196300.0  122200.0  186600.0  208100.0   \n",
       "4008  ...  50200.0  6000.0  15800.0  196300.0  122200.0  186600.0  208100.0   \n",
       "4009  ...  50200.0  6000.0  15800.0  196300.0  122200.0  186600.0  208100.0   \n",
       "\n",
       "            41        42       43  \n",
       "4000  174900.0  146800.0  89600.0  \n",
       "4001  174900.0  146800.0  89600.0  \n",
       "4002  174900.0  146800.0  89600.0  \n",
       "4003  174900.0  146800.0  89600.0  \n",
       "4004  174900.0  146800.0  89600.0  \n",
       "4005  174900.0  146800.0  89600.0  \n",
       "4006  174900.0  146800.0  89600.0  \n",
       "4007  174900.0  146800.0  89600.0  \n",
       "4008  174900.0  146800.0  89600.0  \n",
       "4009  174900.0  146800.0  89600.0  \n",
       "\n",
       "[10 rows x 44 columns]"
      ]
     },
     "execution_count": 125,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data[4000: 4010]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "id": "0c960491-c1a3-4353-b6e2-56577179dff6",
   "metadata": {},
   "outputs": [],
   "source": [
    "bot.start_time = 1701734400.0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 93,
   "id": "e8458940-8104-4729-9b24-05fe5d2562d5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "245144.4923567772"
      ]
     },
     "execution_count": 93,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ConvertToSimTime_us(bot.start_time, bot.time_ratio, bot.day, bot.running_time)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 112,
   "id": "2b8da2ea-327b-445f-a0e6-e74f1c9b4edf",
   "metadata": {},
   "outputs": [],
   "source": [
    "SimTimeLen = 14400\n",
    "endWaitTime = 300\n",
    "while True:\n",
    "    if ConvertToSimTime_us(bot.start_time, bot.time_ratio, bot.day, bot.running_time) < SimTimeLen:\n",
    "        break\n",
    "    else:\n",
    "        bot.day += 1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 113,
   "id": "f7ce3141-374e-486e-95dd-1a5511cc1590",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(1701734400.0, 28, 1800, 10, 14)\n"
     ]
    }
   ],
   "source": [
    "print(f\"{bot.start_time, bot.running_days, bot.running_time, bot.time_ratio, bot.day}\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 114,
   "id": "504b3684-d288-42d0-a31b-f0ccf593a5ed",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1708.8634657859802"
      ]
     },
     "execution_count": 114,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ConvertToSimTime_us(bot.start_time, bot.time_ratio, bot.day, bot.running_time)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "id": "1727bf50-6b0f-48be-bd34-a23f8ecf82ce",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "日期时间字符串: 2023-12-05 08:00:00\n",
      "Timestamp: 1701734400.0\n"
     ]
    }
   ],
   "source": [
    "\n",
    "# 输入日期时间字符串\n",
    "datetime_str = \"2023-12-05 08:00:00\"\n",
    "\n",
    "# 将日期时间字符串转换为 datetime 对象\n",
    "dt_object = datetime.strptime(datetime_str, \"%Y-%m-%d %H:%M:%S\")\n",
    "\n",
    "# 将 datetime 对象转换为 timestamp\n",
    "timestamp = dt_object.timestamp()\n",
    "\n",
    "# 输出结果\n",
    "print(\"日期时间字符串:\", datetime_str)\n",
    "print(\"Timestamp:\", timestamp)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "3b66a421-549b-44f1-9c0b-7195f1d2bae7",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Timestamp: 1701734400\n",
      "Standard Time: 2023-12-05 08:00:00\n"
     ]
    }
   ],
   "source": [
    "# 假设 timestamp 为整数或浮点数，表示从 Epoch（1970-01-01 00:00:00 UTC）开始的秒数\n",
    "timestamp = 1701734400  # 例如，这里使用了一个示例 timestamp\n",
    "\n",
    "# 将 timestamp 转换为标准化时间\n",
    "standard_time = datetime.fromtimestamp(timestamp)\n",
    "\n",
    "# 输出结果\n",
    "print(\"Timestamp:\", timestamp)\n",
    "print(\"Standard Time:\", standard_time)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "id": "e930d5f0-701f-4a0d-9d05-c28ea55c4991",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "子进程的列表：[]\n",
      "电脑的CPU数量：16\n",
      "现在运行的进程：<_MainProcess name='MainProcess' parent=None started>\n"
     ]
    }
   ],
   "source": [
    "print('子进程的列表：{}'.format(multiprocessing.active_children()))\n",
    "print('电脑的CPU数量：{}'.format(multiprocessing.cpu_count()))\n",
    "print('现在运行的进程：{}'.format(multiprocessing.current_process()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "cf19b44f-06d7-4cd1-baff-2a362250b876",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "id": "41100029-70ef-47df-a40e-24ea4401e4f8",
   "metadata": {},
   "outputs": [],
   "source": [
    "def process1(num):\n",
    "    while True:\n",
    "        num += 2\n",
    "        print('{} is running >> {}'.format(multiprocessing.current_process().name, num))\n",
    "        time.sleep(2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "id": "94ce0d3e-1704-4710-b7a5-b52c1aaad4ea",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 设置进程\n",
    "new_pro = multiprocessing.Process(target=process1, name='Add2', args=(100,))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "id": "3b3f1294-88ef-4474-9309-797bb0cee70c",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 进程开始\n",
    "new_pro.start()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "id": "5b0be9d9-3ffb-4109-be3d-2b7cd0368487",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'MainProcess'"
      ]
     },
     "execution_count": 77,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "multiprocessing.current_process().name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "id": "a7572c46-abf7-4fb0-ad1a-8a51d72cc612",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "MainProcess is running >> 1\n",
      "MainProcess is running >> 2\n",
      "MainProcess is running >> 3\n",
      "MainProcess is running >> 4\n",
      "MainProcess is running >> 5\n",
      "MainProcess is running >> 6\n",
      "MainProcess is running >> 7\n",
      "MainProcess is running >> 8\n",
      "MainProcess is running >> 9\n"
     ]
    },
    {
     "ename": "KeyboardInterrupt",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m                         Traceback (most recent call last)",
      "Cell \u001b[1;32mIn[76], line 5\u001b[0m\n\u001b[0;32m      3\u001b[0m n \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m \u001b[38;5;241m1\u001b[39m\n\u001b[0;32m      4\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{}\u001b[39;00m\u001b[38;5;124m is running >> \u001b[39m\u001b[38;5;132;01m{}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;241m.\u001b[39mformat(multiprocessing\u001b[38;5;241m.\u001b[39mcurrent_process()\u001b[38;5;241m.\u001b[39mname, n))\n\u001b[1;32m----> 5\u001b[0m time\u001b[38;5;241m.\u001b[39msleep(\u001b[38;5;241m1\u001b[39m)\n",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m: "
     ]
    }
   ],
   "source": [
    "n = 0\n",
    "while True:\n",
    "    n += 1\n",
    "    print('{} is running >> {}'.format(multiprocessing.current_process().name, n))\n",
    "    time.sleep(1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "id": "5cd739a8-0d2e-4cac-ac73-d4dcb691d90c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "MainProcess is running >> 1\n",
      "MainProcess is running >> 2\n",
      "MainProcess is running >> 3\n",
      "MainProcess is running >> 4\n",
      "MainProcess is running >> 5\n",
      "MainProcess is running >> 6\n",
      "MainProcess is running >> 7\n"
     ]
    },
    {
     "ename": "KeyboardInterrupt",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m                         Traceback (most recent call last)",
      "Cell \u001b[1;32mIn[78], line 21\u001b[0m\n\u001b[0;32m     19\u001b[0m n \u001b[38;5;241m+\u001b[39m\u001b[38;5;241m=\u001b[39m \u001b[38;5;241m1\u001b[39m\n\u001b[0;32m     20\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{}\u001b[39;00m\u001b[38;5;124m is running >> \u001b[39m\u001b[38;5;132;01m{}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;241m.\u001b[39mformat(multiprocessing\u001b[38;5;241m.\u001b[39mcurrent_process()\u001b[38;5;241m.\u001b[39mname, n))\n\u001b[1;32m---> 21\u001b[0m \u001b[43mtime\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msleep\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m1\u001b[39;49m\u001b[43m)\u001b[49m\n",
      "\u001b[1;31mKeyboardInterrupt\u001b[0m: "
     ]
    }
   ],
   "source": [
    "import multiprocessing\n",
    "from multiprocessing import Process\n",
    "import time\n",
    "\n",
    "def process1(num):\n",
    "    while True:\n",
    "        num += 2\n",
    "        print('{} is running >> {}'.format(multiprocessing.current_process().name, num))\n",
    "        time.sleep(2)\n",
    "\n",
    "if __name__ == '__main__':\n",
    "\t# 设置进程\n",
    "    new_pro = Process(target=process1, name='Add2', args=(100,))\n",
    "    # 进程开始\n",
    "    new_pro.start()\n",
    "\n",
    "    n = 0\n",
    "    while True:\n",
    "        n += 1\n",
    "        print('{} is running >> {}'.format(multiprocessing.current_process().name, n))\n",
    "        time.sleep(1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1a432686-5238-461e-b1a9-1c136b187318",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
